package com.enums;

import lombok.Getter;

/**
 * @author：
 * @date：2018/9/13 11:46:
 * @description:用户类型枚举
 */
@Getter
public enum UserTypeEnum {
    Geek("0", "geek"), Boss("1", "boss"), Other("2", "other-userType");

    String value;
    String meaning;

    UserTypeEnum(String value, String meaning) {
        this.value = value;
        this.meaning = meaning;
    }

//    public static String getMeaning(String value){
//
//        for(UserTypeEnum userType : UserTypeEnum.values()){
//            if(userType.value.equals(value)){
//                return userType.meaning;
//            }
//        }
//        return "error";
//    }
}
